﻿using Terraria;
using Terraria.ModLoader;

namespace HardcoreGame.Common.Players
{
    public class HeavyWeaponPlayer : ModPlayer
    {
        public int comboType;
        public int comboDelay;
        public int claymoreCombo;
        public void ProcCombo(Item item, int delay)
        {
            claymoreCombo = item.type != comboType ? 0 : claymoreCombo + 1;
            comboDelay = item.useAnimation + delay;
            comboType = item.type;
        }
        public override void PostUpdateMiscEffects()
        {
            if (comboDelay > 0)
            {
                comboDelay--;
                if (comboDelay == 0)
                {
                    claymoreCombo = -1;
                }
            }
        }
    }
}
